Browser hacking: Let's profile the JS raytracer and do some architectural optimizations for it!

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

@1:05:05 you had me sitting on the edge of my seat all monkaS like here. I was very relieved when there was a reason then why suddenly the time had gone back to what it started at 😌

forgottenmohawks
Автор

My HashMap implementation in C uses closed hashing (aka open addressing) -- specifically, double hashing -- for collision resolution.


Might not be what you want, but I'm just puttin that out there :^)

REALsnstruthers
Автор

I'm no javascript programmer, but I went and played around with arrays in a repl a little.
Apparently an array keeps its length property, even if you start using it like an object. For example:
_x=[1, 2, 3]_
then x.length is 3
_x[6]=0_
now x.length is 7, and x[3], x[4], x[5] are all undefined.
_x["foo"]="bar"_
x.length is still 7

leonhrad
Автор

If you don't mind explaining, how does this profiler work? At least on a basic level. How is it possible to capture every function call like that...

Infinitive
Автор

I always wanted to ask! Who is "bogi" ?

visit shbcf.ru