Baselabs

Main Menu

  • Home
  • Software development
  • Automotive applications
  • Data fusion
  • German company
  • Debt

Baselabs

Header Banner

Baselabs

  • Home
  • Software development
  • Automotive applications
  • Data fusion
  • German company
  • Debt
Software development
Home›Software development›Microsoft .NET 7 Preview 4 brings Regex improvements, cache metrics

Microsoft .NET 7 Preview 4 brings Regex improvements, cache metrics

By Russell Lanning
May 14, 2022
0
0

Microsoft’s latest preview of .NET 7, the upcoming next version of its software development platform, features improvements for working with regular expressions and caching.

Downloadable from the Microsoft .NET website, the fourth preview of .NET 7 was released on May 10. The production version is scheduled for November.

Microsoft .NET Preview 4 adds the remaining scheduled APIs that add support for scoped types to the Regex (regular expressions) library. Changes add support for matching with ReadOnlySpan inputs and review the processing of RegexOptions.IgnoreCase. New duration-based APIs include:

  • Regex.IsMatch(ReadOnlySpan input)which indicates whether the regular expression finds a match in the input range.
  • Regex.Count(ReadOnlySpan input)which searches an input string for all occurrences of a regular expression and returns the number of matches.
  • Regex.EnumerateMatches(ReadOnlySpan input)which searches an input scope for occurrences of a regular expression and returns a ValueMatchEnumerator to lazily iterate over matches.

In other Regex improvements, Microsoft said it worked to make code generated by the Regex source generator more readable and easier to debug, and to allow projects with multiple source-generated regular expression patterns to share of the common code.

Preview 4 also introduces metrics support for IMemoryCache. The main APIs added are MemoryCacheStatisticswhich contains cache hits and misses, estimated size and count for IMemoryCacheand GetCurrentStatisticswhich returns an instance of MemoryCacheStatisticsor null when the TrackStatistics the indicator is not activated.

Also in Preview 4, Microsoft has finished annotating the Microsoft.Extensions.* libraries for nullability, introduced a Activity.Current edit the event to improve OpenTelemetry support for observability, and add the System.Formats.Tar assembly, which contains cross-platform APIs for reading, archiving, writing, and extracting Tar archives.

Microsoft .NET 7 Preview 1 was released on February 17, followed by .NET 7 Preview 2 and .NET 7 Preview 3 on March 14 and April 13, respectively.

Copyright © 2022 IDG Communications, Inc.

Related posts:

  1. Global Software Development Platform Market 2020 to 2025 Business Outlook and Innovative Trends
  2. The application development and modernization market can see a big
  3. A Leadership Guide to Mitigating Security Risks with Low Code Platforms
  4. From Belfast, via Sydney, to the world leaders in software in a Lightyear!

Categories

  • Automotive applications
  • Data fusion
  • Debt
  • German company
  • Software development

Recent Posts

  • GetCash makes borrowing quick and easy
  • Netum strengthens its position in the university market
  • Global Automotive Shock Absorber Market Advancement Prospects | Industry demand 2022
  • Canada’s share is higher at the close of trading; S&P/TSX Composite Index up 1.34%
  • – English Nation News
  • Privacy Policy
  • Terms and Conditions