(August 12, 2022 at 9:24 am)HappySkeptic Wrote:(August 12, 2022 at 7:26 am)FlatAssembler Wrote: @bennyboy , you say you are an experienced web developer. Could you please look into my PicoBlaze Simulator in JavaScript and tell me how I could speed it up? I cannot diagnose why it is so slow.
No-one is going to help you on such a generic question. First, write a series of performance tests with timings. Then, use the a performance tool on whatever Javascript system you are on (the one in Chrome are good). Look for hot spots in the bottom-up profiling.
When coding for performance, I always have an idea of the performance I'm expecting. I break down the pieces and check the speed of each. If you aren't testing with actual numbers, you have nothing to go by.
Whence am I supposed to know all those things? I am just a third-year computer science student. And I have also been using a hell lots of things we haven't been taught at the university in my program.