flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2, 3, 4, 5, 6 |
Author |
|
DimonSoft 25 Aug 2022, 06:07
revolution wrote: That assumes a single use case. Your "release it" scenario doesn't apply to every situation. That assumes the most common use case. Code is generally written to be released and used by its intended users to solve real-world tasks. Purely researching something is a corner case. So, when someone asks for guidance it’s a perfectly valid assumption that they are going to release some day, and thus are eager to save some time looking for alternative implementations to try. When there’s no time limitations, there’s no need to ask for guidance, just brute-force all possible implementations and see if they work better. BTW, one’s lifetime might also be a limitation. Whenever your algorithm contains a loop with variable iteration count, the number of tests that should be run to perform full testing becomes nearly infinite. Lifetime is not. (We don’t want solutions that are good with one iteration count but not the other, right?) |
|||
![]() |
|
Fastestcodes 25 Aug 2022, 09:40
macomics wrote:
Yes.Thx. "error invalid argument"only I changed Lea to Lead.It works. |
|||
![]() |
|
Furs 25 Aug 2022, 13:29
macomics wrote:
Anyway I agree with DimonSoft exactly here. |
|||
![]() |
|
Furs 25 Aug 2022, 13:32
revolution wrote: All sorts are slower than some other sort, and all sorts are faster than some other sort. It all depends on your usage. If you do know the data then optimize for the data accordingly, but hey, I'm moving goal posts if I'm suggesting stuff like RLE earlier, so... ![]() Testing skewed data when you don't want to assume such data is just playing Devil's Advocate without doing anything useful. Unless you want to test the worst-case of course, that's totally fine to test. This is super important for hash tables for example, which is why I tend to back them with binary trees, so it doesn't blow up on rare data patterns (Java's hash table does something similar I heard). |
|||
![]() |
|
Goto page Previous 1, 2, 3, 4, 5, 6 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.