Message from JavaScript discussions

May 2017

— I see


I think accessing an object prop among 20 several times is better than accessing a prop among millions once

— It sounds like a good idea

— Like a compressed string set

— Yep, kindof

— Whats it's time complexity?

— Not sure rn.. Can post code in a while

— Hmmmm

— I could keep the same structure reversed

— And run lookups both ways at once

— That doesn't sound good, haha

— I imagine for every wrong guess the traversal makes it will increase the time complexity by a factor slightly smaller than a linear lookup

Message permanent page