-
Content Count
592 -
Joined
-
Last visited
-
Days Won
7
Tommi Prami last won the day on January 16
Tommi Prami had the most liked content!
Community Reputation
141 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Worker thread queue performance
Tommi Prami replied to snowdev's topic in Algorithms, Data Structures and Class Design
People tend to forget things. Right? As I recall ChatGPT gave virtually identical code also, but does not change the fact that I messed up... (EDIT: What I tried to say with that ChatGPT thing wea that I think (if recall) made ChatGPT implementation first. Checked out the API calls made, Google search and found the Grahics32 implementation and went with that. I think I had no intention to make the reposiotory public of that extracted version. As I was just testing the effect of the performance cores only thing out of curiocity, but at some point thought that mayeb some one also would like to use that. At that point most likely did not even think of the origin of the code any more. etc. I should have, for sure. Would not like to hijack more this thread on this, hope all is good now as the license is changed and added reference to the oigin, make issue on the project if something else is needed to fix)- 28 replies
-
- multithreading
- queue
-
(and 5 more)
Tagged with:
-
Worker thread queue performance
Tommi Prami replied to snowdev's topic in Algorithms, Data Structures and Class Design
Is there Lock free or Thread safe containers in Sping4D... Asking for a friend 😉 -Tee-- 28 replies
-
- multithreading
- queue
-
(and 5 more)
Tagged with:
-
Worker thread queue performance
Tommi Prami replied to snowdev's topic in Algorithms, Data Structures and Class Design
At least in my case, I ran 7-Zip processes in parallel, windows did piss poor job of allocating those prcesses to perdormance cores. Anyones mileage migh vary for sure.- 28 replies
-
- multithreading
- queue
-
(and 5 more)
Tagged with:
-
Worker thread queue performance
Tommi Prami replied to snowdev's topic in Algorithms, Data Structures and Class Design
It is mostly from there. I think. I thought I made it clear in code or GitHUB, let me check. I think I found few starting points, when searching the solution for the problem. If you’re referring to what I said earlier, that I did write it. I honestly did no longer remembered where it originally came from. I’ll make sure to give credit to the project. In other words, I had no intention of taking credit for something that isn’t mine. -Tee-- 28 replies
-
- multithreading
- queue
-
(and 5 more)
Tagged with:
-
Worker thread queue performance
Tommi Prami replied to snowdev's topic in Algorithms, Data Structures and Class Design
Helllo, Depending on your CPU, you might need to set Affinity mask for the threads. If you have new Intel CPU with P and E cores you get wildly different results depending on which core threads are running at. Made siple unit top get Affinities: https://github.com/TommiPrami/Delphi.ProcessAffinity.Utils If you use it and find bugs, please make pull reguest. -Tee-- 28 replies
-
- multithreading
- queue
-
(and 5 more)
Tagged with:
-
Could you please make the benchmark results like in the original version has. And possibly add the original into the mix, so can see how much the bugfixes ads overhear, correctness sometimes sadly has some penalty 😉 But anyhow, would be good addition.
-
He was most likely talking to me, not to you, but he started it ans for sure not been insulting everyone, so... Not sorry...
-
Heh.. You seem to have no crasp of Multi threaded development, and fail to listen ones that REALLY know what tey are talking about,. (No need to listen me, but above there are messagews from people, that really know their shit, but...) -Tee-
-
I bet you did not fix the actual problem here. -Tee-
-
If you write and/or access same string from multiple threads, is not thread safe. If you did not get errors or memory leaks is pure luck, or you did not check memory leaks with tool, that actually will report you the actual horror of updating strigg from multiple thread without proper protection (not a condom) -Tee-
-
function declarations without ; at the end
Tommi Prami replied to Günther Schoch's topic in RTL and Delphi Object Pascal
Maybe you could make bug report to emba, maybe they fixit or not. -Tee- -
GExperts now fixes yet another annoyance in the Delphi IDE: Desktops
Tommi Prami replied to dummzeuch's topic in GExperts
Works. Thank you very much! -Tee- -
What does [ref] attribute actually dows
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
Tried that with record as parameter, did not see any speedup, const and const [ref] had same performance. Winning clearly if it was passed as by value eith const ore var. I was jsut thinkin that could there be places and code (in my code ba se for example) thjat could benefit from [ref]? -Tee- -
What does [ref] attribute actually dows
Tommi Prami replied to Tommi Prami's topic in RTL and Delphi Object Pascal
I have been in impression that const actually would do something like that already. So parameter would be passed as reference. Will juust not allow changin it.... Is there some clear benefit of using [ref],m unless in need of doing something like in the FreeAndNil iomplementation. -
GExperts now fixes yet another annoyance in the Delphi IDE: Desktops
Tommi Prami replied to dummzeuch's topic in GExperts
I see the same behavior, with single 4K monitor.