tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Relative paths of include files are not normalised, w


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] Relative paths of include files are not normalised, which can break #pragma once
Date: Wed, 28 Jun 2023 07:22:44 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 6/27/23 19:44, grischka wrote:
On 25.06.2023 20:30, Herman ten Brugge via Tinycc-devel wrote:

I just pushed a patch to fix this.

Hi Hermann,

some numbers from Win32:

before:
  # 6.334 s, 85768 lines/s, 27.9 MB/s
after first patch:
  # 11.825 s, 45941 lines/s, 14.9 MB/s
after second patch:
  # 10.406 s, 52206 lines/s, 17.0 MB/s

Hm ...

I tested this also before committing. I could not find a problem.
I only have an x86_64 machine on redhat linux and a raspberry pi with 32 and 64 bits.
I also have no Windows any more and my i386 machine died about 10 years ago.
So I did the measurement with wine (32/64 bits) and saw no difference before and after commit.

I did make a small change to the hash function. See attached patch.
(I used a 32 bits hash instead of 64 bits)

I cannot currently think of a better solution for pragma once. Maybe you can?

    Herman

Attachment: patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]