The various KWQ data structures show up on profiles of the HTML iBench, they show obvious opportunities for improvement via inlining and use of main_thread_malloc.
Created attachment 3375 [details] assorted speedups
Comment on attachment 3375 [details] assorted speedups All looks good. r=me
Created attachment 3376 [details] some similar speedups I have sitting around