Skip to content

Commit 8e73ffa

Browse files
authored
Generate an asset's data with fewer strings.
Do not generate data with a new string every 24 bytes, but with strings of up to 1,000,000 bytes. This is a horrible hack; a better approach needs to be found. The reason behind this change is that compiling a concatenation of many thousands of string literals is extremely slow. see also tmthrgd#8
1 parent ed23238 commit 8e73ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,10 @@ var _bindata = map[string]*asset{
210210
{{- end}}
211211
data: {{if $.Compress -}}
212212
"" +
213-
{{flate . "\t\t\t" 24}}
213+
{{flate . "\t\t\t" 1000000}}
214214
{{- else -}}
215215
"" +
216-
{{read . "\t\t\t" 24 -}}
216+
{{read . "\t\t\t" 1000000 -}}
217217
{{- end}},
218218
219219
{{- if or $.Metadata $.Compress -}}

0 commit comments

Comments
 (0)