Jump to content

Tommi Prami

Members
  • Content Count

    613
  • Joined

  • Last visited

  • Days Won

    8

Tommi Prami last won the day on July 21

Tommi Prami had the most liked content!

Community Reputation

157 Excellent

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Tommi Prami

    New file system monitoring component

    Very nice. Way better than constant polling for sure. I think I have no use for this now, but have to think about it, maybe I can think of something. In previous live used FindFirstChangeNotification API, did not knoew that there is other API for this. -Tee-
  2. Hello, Couple highlevel articles below. Seems that, at least for larger data benefits nicely... Test has 512 vs 4096 byte tests. https://www.phoronix.com/news/Linux-CRC32C-VPCLMULQDQ https://www.phoronix.com/news/CRC32C-Faster-Linux-6.17 -Tee-
  3. https://sourceforge.net/p/gexperts/feature-requests/197/ -Tee-
  4. On this atleast syuntax is readable X := if Left < 100 then 22 else 45; For example C-syntax is not what I really can say that I like. int result = (x > 5) ? 10 : 20; even worse if writte like this int result=(x>5)?10:20; Syntax highlighting saves a bit for sure but still easy to miss those... One character operator thingies... -Tee-
  5. For clarity, maybe good code example would be needed. 🙂 Checked Embarcadero documentation, and it also would benefit code samples. And explanation what those can and can't do... -Tee-
  6. Tommi Prami

    "Png to pixel-perfect svg conversion" (I didn't make this)

    Added Paths, instead of rectangles etc... -Tee-
  7. Tommi Prami

    "Png to pixel-perfect svg conversion" (I didn't make this)

    Lasse made new algorithm yesterday, and said that in his tests file size dropped about 50% Have not tested my self...
  8. Tommi Prami

    "Png to pixel-perfect svg conversion" (I didn't make this)

    My personal rationale is that you can onece and for all change icon technology/source from bitmap to vectorm and with for us, acceptable result. After that one can start pondering how to get better and way more optimal Svg-files. Anyhow, fully understanmd that this is not for even close good enough for all. -Tee-
  9. Tommi Prami

    "Png to pixel-perfect svg conversion" (I didn't make this)

    At least we have blurriness problem. And resulted pixel svg stays grispier. But anyones mileage will definetely wary, if your exe is 150mb and if ypu make it 151mb, it is not big of a deal. If visual appearance is better. Have not checked that is resampling methods of Delphi virtual image list adjustable... Havent heard anything of such, I think. For use this could be good way to go forward. Not sure yet. Way better than trying to learn vector graphis and redrawing all aboiut 300 icons to svg, or paying graphic artist to do it for us. Most likely would cost 10k€ etc... I would not even think doing that for less Because we need quite many custom icons thaty are not available in any collections. -Tee-
  10. Tommi Prami

    "Png to pixel-perfect svg conversion" (I didn't make this)

    And... I bet Lasse will accept pull requests, if you find a way to make it better. I would bet that some algorithm to analize color and/or tranparency cradients would make way smaller Svg-files. For me the vector graphics always has been ppure magic, but would guess, that som e cases those gradients would be possible to analyze to furher optimize the file... Molst likely justr rectangles with gradients would be goodf addition... -Tee-
  11. Hello. Coworker made this: https://github.com/TextEditorPro/Png2Svg Kind of brute force Png to Svg conversion. Depenging on the case, this might be good first step to the using Svg-icons in your project. Like you don't mind if files are bit bigger . Or you have single size bitmaps which get resampled for different sizes and the blurryness really bugs you. -Tee-
  12. Tommi Prami

    Interesting read about Sleep(0/1) and SwitshToThread

    That is where this journey started... 😉 -Tee-
  13. Tommi Prami

    Interesting read about Sleep(0/1) and SwitshToThread

    One of the replies says that SwitchToThread will yeld to waiting thread on same CPU (not the core). If computer has multiple CPUs then Sleep(0) would run threads on other CPU also. That's how I understood the repply. But, thread cheduler might have changed over the years, so these might be very hard to be sure how it behaves... -Tee-
  14. Tommi Prami

    Interesting read about Sleep(0/1) and SwitshToThread

    As I understand what they say, for some ypou would need multiple CPUs. You for sure might have such a hardware. Thanks for extra info.,..
  15. Spoiler, SwitshToThread <> Sleep(0). https://stackoverflow.com/questions/1383943/switchtothread-vs-sleep1 Sleep(0) will allow threads on other processors to run, as well. Seems that this is quite tricky, dependig what yuo are doing and what you are trying to achioeve. No silver bullets... -tee-
×