Skip to content

Conversation

@XTorLukas
Copy link
Contributor

Resolved / Related Issues

To prevent extra work, all changes to the Files codebase must link to an approved issue marked as Ready to build. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.

Steps used to test these changes

Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.

  1. Try loading bigger folder e.g. C:/Windows/System32
  2. It is now faster to load strings with formatting using GetLocalizedFormatResource

@XTorLukas
Copy link
Contributor Author

@yaira2 fyi

Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are used in bulk enumeration so speed is important imo.
Do you think having our own message formatter would improve performance?

Codewise, looks good to me.

…rmatter.cs

Co-authored-by: 0x5BFA <62196528+0x5bfa@users.noreply.github.com>
@XTorLukas
Copy link
Contributor Author

Those are used in bulk enumeration so speed is important imo. Do you think having our own message formatter would improve performance?

According to the benchmarks I am doing while developing my own UnicodeFormatter, the results are promising so far, but I am still working on optimisation and development, here I am already running into the limits of C# and it is necessary to redirect some operations to the C++ part or use pointers in the unsafe part of the code. I will continue the development. For now, however, this MessageFormat cannot be used with a large number of elements.

Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully we can figure this out so that we can bring back the code improvements, but the main thing is that performance is back to how it was before.

@yaira2 yaira2 added the ready to merge Pull requests that are approved and ready to merge label Jun 10, 2024
@yaira2 yaira2 merged commit bfc9688 into files-community:main Jun 10, 2024
@XTorLukas XTorLukas deleted the xtorlukas/CQ-BackBeforeDateTimeICU branch June 22, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Pull requests that are approved and ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Files slows to a crawl if opening a folder with lots of files (preview build)

3 participants