Release 1.0.0#157
Open
FlorianRappl wants to merge 117 commits into
Open
Conversation
Update ColorParser.cs
Enable nullable reference types solution-wide (but #nullable disabled marked for existing code)
Multi-target AngleSharp.Performance.Css to net472;net10.0 so that Alba.CsCss (which only supports net462/net472) is excluded from the net10.0 build. Update ExCSS from 2.0.6 to 4.3.1 and adapt to its renamed StylesheetParser API.
Replace the custom TestSuite/ITestee infrastructure with BenchmarkDotNet for statistically rigorous benchmarking with memory diagnostics. Inline parser logic into a single CssParserBenchmarks class parameterized by CSS sample file. Add benchmark usage instructions to README.
- Rewrite ContentFrom() to scan chars directly instead of re-invoking the full tokenizer, eliminating double-tokenization - Cache single-char token strings via static lookup table, remove unused CssStringToken/CssUrlToken/CssCommentToken subclasses - Add ToLowerFast() to skip allocation when strings are already lowercase, use StringBuilder for custom property name concatenation - Replace @-rule if-else chain with dictionary dispatch, add dictionary index to CssStyleDeclaration for O(1) property lookups - Avoid double-array allocation in PeriodicValueConverter when all 4 values are present
Fix performance benchmark TFM compatibility. Update to latest ExCSS ver
Chore/benchmarkdotnet perf
Optimize CSS parser performance
CssPeriodicValue.CssText throws if any of the items in _values array is null. This change makes CssText return an empty string if a null value is found during the iteration.
Fix NullReferenceException in CssPeriodicValue
|
@FlorianRappl when is the 1.0.0 release planned? |
Contributor
Author
|
Within the next 2 weeks. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Types of Changes
Prerequisites
Please make sure you can check the following two boxes:
Contribution Type
What types of changes does your code introduce? Put an
xin all the boxes that apply:Description
This is the 1.0.0 release of AngleSharp.Css - effectively being compatible with AngleSharp v1 and bringing the CSSOM to a good state.
Current status:
<percentage>,<number>and<integer>types)Potentially we'll also include some perf. enhancements, but most likely this is done in a subsequent release. Current goal is to ship this with a stable basis.