3 ms·
And the app engine only supports a single thread for Go, imagine if you could make it multi-threaded.
by NateDad 14y ago
And the app engine only supports a single thread for Go, imagine if you could make it multi-threaded.
- phasevar 14y agoMulti-threaded wouldn't help the case of a single request, which is what this post is reporting latency numbers on.
- voidlogic 14y agoTrue, but it would help average request latency under load. I am hoping with Go 1.1 RC coming out next month that Google might enable multi-threading on the GAE. Note: Even with Go only given a single core a developer can still write a Go program so they are concurrent. That way when one goroutine blocks on IO, another can use the CPU to make progress; furthermore, when multi-threading is enabled the performance upgrade will be substantial and seamless.
- Encosia 14y agoAssuming he's searching a trie to build the list of anagrams, he could distribute a single request's work over a thread per letter.
- Evbn 14y agoIf he has multi core, which is often missing in a VM.