-
Content Count
642 -
Joined
-
Last visited
-
Days Won
9
Tommi Prami last won the day on November 21
Tommi Prami had the most liked content!
Community Reputation
161 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
64 bit over 10x slower than 32 bit
Tommi Prami replied to johnnydp's topic in RTL and Delphi Object Pascal
I think you missed my point. My point was, that how those changes affects to the speed. Following cases: Current implementation Raise exception in separate method, to avoid hidden try .. finally clause Remove if and dll check totally from calculations and "leave it to user to load the dll before calling the calculations" - moldel. How much there is difference in speed, with those changes, cases 2 and 3 should be faster but how much? -tee- -
64 bit over 10x slower than 32 bit
Tommi Prami replied to johnnydp's topic in RTL and Delphi Object Pascal
Try to remove if not UCRTLoaded then raise Exception.Create('Ucrtbase.dll not found or functions '); Code, or wrapt it to Debug define and/or do something like procedure RaiseUCRTNotLoaded; {$IF CompilerVersion >= 37.0} noreturn; {$ENDIF} begin raise Exception.Create('Ucrtbase.dll not found or functions ') at ReturnAddress; end; function Cos_DD(x: Double): Double; begin {$IFDEF DEBUG} if not UCRTLoaded then RaiseUCRTNotLoaded; {$ENDIF} Result := CosPtr(x); end; function Sin_DD(x: Double): Double; begin {$IFDEF DEBUG} if not UCRTLoaded then RaiseUCRTNotLoaded; {$ENDIF} Result := SinPtr(x); end; Havinin raise... code in the actual math functions cause hidden try..finally block because of string handling. hmmm, maybe I can find better explanation of this by @Eric Grange https://www.delphitools.info/2009/05/06/code-optimization-go-for-the-jugular/ Would be very interesting to see effect of that, in your code. -tee- -
FileSearchEngine with OmniThreadLibrary
Tommi Prami replied to PeterPanettone's topic in OmniThreadLibrary
Yellow, Could you put this into the GitHUB etc? You could receive pull request(s) if lucky. Thought also, when done, something like this could be nice to have in OTL out of the box, because this is one of the things many needs. -tee- -
Hello, Could you add bit more general info what this could be used for, and what is needed to get it going. So anyone that checks this out, would not have to start googling info etc... -tee-
-
If implemented this would be must, to put the order that would fill need in hand. Mainly for me this would remove on indentation and the one thing I can't remember what is called, like begin .. end... "collection of code lines"
-
GetIT update fails, same way that the previous update for D13. Tels that "Not compatible with version..." I'll just grab some kind of screenshot... Is anyone else gettings this and/or reported to Embarcadero this? -tee- @Ian Barker PS. Downloaded update package installed fine, it does not show in About dialog, but I believe it installed just fine.
-
String type breaks threading speed, how to solve?
Tommi Prami replied to david berneda's topic in RTL and Delphi Object Pascal
Yellow, Could you share some that of the code of yours? Would be interesting to see how it is done by the expert... -tee- -
String type breaks threading speed, how to solve?
Tommi Prami replied to david berneda's topic in RTL and Delphi Object Pascal
Just to clarify, are you talking of multiple Cores or multiple actual physical CPU chips? At desktop, on Windows, multiple CPU (socket) motherboards are quite rare I think. If I recall, then you would need Server version of Windows. Ah, there is no way to delete your own post 😞 Thought that it was not posting the reply, because it just stayed there in Edit mode. -
String type breaks threading speed, how to solve?
Tommi Prami replied to david berneda's topic in RTL and Delphi Object Pascal
Just to clarify, are you talking of multiple Cores or multiple actual physical CPU chips? At desktop, on Windows, multiple CPU (socket) motherboards are quite rare I think. If I recall, then you would need Server version of Windows. -
String type breaks threading speed, how to solve?
Tommi Prami replied to david berneda's topic in RTL and Delphi Object Pascal
Just to clarify, are you talking of multiple Cores or multiple actual physical CPU chips? At desktop, on Windows, multiple CPU (socket) motherboards are quite rare I think. If I recall, then you would need Server version of Windows. -
Slowness seems to be ralated to time of day. Maybe. Some time ago it was very slow, now just slow... Adn very slow again, atleast posting new message and editing existing is very slow,
-
is there any "currency to words" routine for Delphi?
Tommi Prami replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
Just out of curiosity wheree this is actually needed? Some country/Culture/Local law related thing? -
Hello, Has someone made tickets for Emba of these issues in this discussion. If/will so so, links please. -tee-
-
Capturing paste at the form level, possibly bypassing components
Tommi Prami replied to Tommi Prami's topic in Windows API
Nice... ctrl := FindControl(Msg.hwnd); // <- could you tell me what is this for? -
Capturing paste at the form level, possibly bypassing components
Tommi Prami posted a topic in Windows API
Hello, I need either VLC / WinMessage / WinAPI solution to this. Current (very old) implementation uses Forms KeyPreview set to true. Then on KeyUp event paste key kombinations will invoke code that will get data from keyboard, and Key is set to zero. It mostly works, but sometimes edit controls are faster to capture the paste. Would need bit more robust version for this. -Tee-
![Delphi-PRAXiS [en]](https://en.delphipraxis.net/uploads/monthly_2018_12/logo.png.be76d93fcd709295cb24de51900e5888.png)