Nah that’s not lack of premature optimization, that’s just electron apps and everyone learning JavaScript.
Yeah. It’s still slow, as it were. But the JavaScript community also very much aligns with various functional programming ideals like immutability, which takes “kind of slow” to “immensely slow”.