0

Which is more efficient/faster? Storing/extracting info in Session Storage vs Hidden Fields within the html using JavaScript?

Surprisingly I had trouble finding information on this with a focus entirely on speed/efficiency.

  • 3
    It shouldn't matter in 99% of situations, is this *actually* a bottleneck you're running into? – CertainPerformance Jan 02 '20 at 10:53
  • just check https://stackoverflow.com/questions/39423214/hidden-input-fields-vs-session-vs-cookie – Shiv Kumar Jan 02 '20 at 10:55
  • @CertainPerformance If i can get confirmation that one is slightly more faster, I'd make the effort to design future implementations based around that method. –  Jan 02 '20 at 11:07
  • It's not worth it. https://softwareengineering.stackexchange.com/questions/80084/is-premature-optimization-really-the-root-of-all-evil https://stackify.com/premature-optimization-evil/ – CertainPerformance Jan 02 '20 at 11:09
  • Lets say someone comes across this question *actually* running into this bottleneck, I hope someone can answer this. –  Jan 02 '20 at 11:14

0 Answers0