Wow; i guess i'll try to keep my response short then.
This is a public forum. You are right in that you asked a question and you might have gotten an answer that you accepted, but I care far more about the potential future where someone else with possibly even less knowledge may find this thread and would have some false belief regarding your speed claim, which in my opinion was a valid question that i asked.
Even if you would be right; i didn't test it myself, nor do i need to, nor do you, but it wasn't me who made a claim regarding that. (Mind you, i don't care whether you want to back up the claim or not.)
As for the two other quotes, that was just fluff on my part since i couldn't exactly quote just the end of the sentence without the context from earlier.
And the ergonomic thing, with a dictionary definition of "relating to or designed for efficiency and comfort in the working environment." given by google, i legit wanted to get why that was different from inconvenient and not just a near-synonym.
As for replying to your replies, again, do what feels best; if it's better for you to use multiple files, then do it; no one said it was forbidden, not even me. Again, the point of my post was that i was hung up on your speed claim, nothing more.
And i did not want neither a shitstorm, nor did i force you to discuss jack shit with me, to be honest; i asked for clarification about, again, your claim about the speed issue. Then again, neither was my post off-topic when i literally quoted a post from this thread.
I do wonder why you took it that personally though; i don't think my post was much of a character attack or whatever, nor did i intend it that way, for the record. (not gonna go into grump's responses though)
But there you go, calling both my and grump's messages lacking intellectual value... that's also pretty subjective, you know
MightyPancake wrote: ↑Thu Feb 21, 2019 3:57 pm
Every "if-else" statement that is not necessarily needed in loop, slows down program just a tiny bit. Considering You have more then just one, it will indeed run slower. That's my whole point and I'm afraid there's almost no way for You to convince me I'm wrong here, but You may try
I don't really get this, in terms of the previously posted solutions, what "if-else" statements?
The single-file one had (local) tables defined for each state's contents and you swapped state by basically modifying one value;
The multi-file one basically does the same, if it's written correctly: a file-local table gets returned with callback functions relevant to that state, and again, state-swapping happens with changing one variable.
Those two, are the same solution, one's just separated out into more files. Nothing wrong with that, but it's not faster or slower, at least not by any significant margin; i could claim the multi-file one's actually slower at the start since it needs to open and read from more files, disk utils are usually slower.