by randomstring · 5y ago · 0 comments
One day I wondered why Verse took so long to start, i.e. time to first render of emails. So I profiled the startup using a browser performance profiler. It didn't take me long to discover there was a sleep(5) in one of the Javascript files. Every employee was subjected to a sleep(5) for every single login. Of course for security reasons your email session timed out every 12 hours or so, meaning that every employee is logging into email at least once a work day. Some napkin math: at the time IBM had almost 400k employees, so that's 555 hours per day of wasted employee time. Or 138,888 hours per year of wasted employee time. To be fair some large number of IBMers may not have had jobs that subjected them to Verse.
My tech director in games used to have a ~40mb static array at the top of main.cpp with a big comment along the lines of "DO NOT TOUCH". When we'd come up on a demo or critical milestone and just could not get everything to fit in the ~512mb of ram we needed because the art team put in too many textures or our new subsystem too much memory he'd go in and knock 5-10mb from it and "save the day".
The same tech director removed mip level zero to get back ~33% of our texture memory. About a week later he told the art team that we'd optimized the game and asked if they noticed any visual differences. The art team said they didn't, about 4 weeks later it got out what he actually did and they were livid.
https://scifi.stackexchange.com/questions/99114/source-of-sc...
2. Other than a job security sandbag, I wouldn't be surprised if this was an an even sloppier solution to a sloppy race condition where session token wasn't reliably cached across a distributed system or something. Gross either way.
The latest version from Notes I happened to use was Eclipse actually cross compiled to run on the browser (Notes nowadays uses Eclipse underneath).
Not exactly what I'd call an elegant solution, but it is at least one semi-plausible explanation for a fixed wait.
/ shudder /