-
-
Notifications
You must be signed in to change notification settings - Fork 425
Use the ArrayPool API in .NET Standard 2.1 or later to reduce the creation of LOH objects. #1812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7f76369
针对大照片下,减少LOH对象的创建,经过修改,同一张NIKON Z8拍摄的无压缩照片(56.3 MB (59,137,944 字节))由之…
Wak1Z2 5bb7bfb
测试用照片
Wak1Z2 5ef71af
增加编译预处理h
Wak1Z2 d430fe6
Delete testImage directory
Wak1Z2 9681513
Merge branch 'dlemstra:main' into main
Wak1Z2 ec7a5dc
在类被销毁时提供显示的调用回收,避免未调用GetBytes导致的_bytes未能被pool回收。
Wak1Z2 cd780ca
按照作者的意见对部分代码进行修改
Wak1Z2 18a89f0
按照作者的意见对部分代码进行修改
Wak1Z2 7d0d8d9
Merge branch 'dlemstra:main' into main
Wak1Z2 3712942
Merge remote-tracking branch 'origin/main'
Wak1Z2 8265c38
将所有的NETSTANDARD2_1_OR_GREATER修改为NETSTANDARD2_0
Wak1Z2 b6b68e3
1:取消掉clearArray的选项。
Wak1Z2 9ba338f
之前的GetBytes是错误的,已修改。
Wak1Z2 eebc6d4
在思考了一天多后决定加回来,目前该类在程序中并没有复用。故此就是可以理解为GetBytes只调用一次,后续再说后续的话。
Wak1Z2 3f515b4
依据作者提供的思路,修改了代码。
Wak1Z2 eaf6b00
移除析构函数中的clearArray参数
Wak1Z2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.