Skip to content

Conversation

zerbina
Copy link
Collaborator

@zerbina zerbina commented Oct 2, 2025

Summary

Use a better hash function for hashing tyProc types during
TypeMap lookup.

Details

The new hash function considers all parameter types, instead of just
the number of sons (parameter count + 1). This reduces hash collisions
and should speed up lookup for tyProc types.

Summary
=======

Use a better hash function for hashing `tyProc` types during
`TypeMap` lookup.

Details
=======

The new hash function considers all parameter types, instead of just
the number of sons (parameter count + 1). This reduces hash collisions
and should speed up lookup for `tyProc` types.
@zerbina zerbina added this to the MIR phase milestone Oct 2, 2025
@zerbina zerbina added refactor Implementation refactor compiler/backend Related to backend system of the compiler labels Oct 2, 2025
@zerbina zerbina moved this to In Progress in Rework the mid- and backend Oct 2, 2025
@alaviss
Copy link
Contributor

alaviss commented Oct 3, 2025

/merge

Copy link

github-actions bot commented Oct 3, 2025

Merge requested by: @alaviss

Contents after the first section break of the PR description has been removed and preserved below:


Notes for Reviewers

@chore-runner chore-runner bot enabled auto-merge October 3, 2025 15:44
@chore-runner chore-runner bot added this pull request to the merge queue Oct 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 4, 2025
@alaviss alaviss enabled auto-merge October 5, 2025 01:37
@alaviss alaviss added this pull request to the merge queue Oct 5, 2025
Merged via the queue into nim-works:devel with commit 461cb4c Oct 5, 2025
43 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Rework the mid- and backend Oct 5, 2025
@zerbina zerbina deleted the typemaps-improve-proc-hash branch October 6, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/backend Related to backend system of the compiler refactor Implementation refactor

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants