mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Set load queue concurrency to 10
This shaves around 100-150ms off of the total load time for grammars
This commit is contained in:
@@ -11,11 +11,11 @@ class TextMatePackage extends Package
|
||||
/(^language-.+)|((\.|_|-)tmbundle$)/.test(packageName)
|
||||
|
||||
@getLoadQueue: ->
|
||||
return @loadQueue if @loadQueue
|
||||
@loadQueue = async.queue (pack, done) ->
|
||||
pack.loadGrammars ->
|
||||
pack.loadScopedProperties(done)
|
||||
return @loadQueue if @loadQueue?
|
||||
|
||||
@loadQueue = async.queue (pack, done) ->
|
||||
pack.loadGrammars -> pack.loadScopedProperties(done)
|
||||
@loadQueue.concurreny = 10
|
||||
@loadQueue
|
||||
|
||||
constructor: ->
|
||||
|
||||
Reference in New Issue
Block a user