[v8-users] Cached data or startup snapshot?

2018-02-14 Thread Alexandru Dima
Hi, Which one would you recommend we (VSCode) use? Today, we are using cached data, but I wanted to find out if a startup snapshot would help us more. I've crammed all of VSCode's source code (except third party node modules) in a file and I've created a startup snapshot using `mksnapshot`. I

[v8-users] Is there a way out from dictionary mode?

2018-02-14 Thread Greg Rosenbaum
I understand that I delete an object from a property, i.e.: delete obj.property It will enter dictionary mode. If I do this only once, and the object is used throughout the application, will it at some point become fast again? -- -- v8-users mailing list v8-users@googlegroups.com http://group

Re: [v8-users] Is there a way out from dictionary mode?

2018-02-14 Thread Jakob Kummerow
Probably not. There are exceptions, but I'm hesitating to be specific because these are internal implementation details that can and will change over time. Also, "fast" is relative. Dictionary mode exists because it is faster for some operations. Shape-tracked objects are faster for other situatio

Re: [v8-users] Is there a way out from dictionary mode?

2018-02-14 Thread Greg Rosenbaum
Thanks for the reply! I think I understand what you mean. Dictionary mode is faster when you want to use your object like a dictionary. However, if I were to delete a property of some important prototype lots of objects use, I'm guessing that would cause performance issues in the whole applica

Re: [v8-users] Is there a way out from dictionary mode?

2018-02-14 Thread Jakob Kummerow
> > I think I understand what you mean. Dictionary mode is faster when you > want to use your object like a dictionary. > More generally, dictionary mode is faster for adding/removing/reconfiguring properties (and, depending on circumstances, sometimes also for reading/writing existing properties