commit | cf02b4a4ae17e49324b5b0f9c2aa7bd2806d3633 | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Fri Jun 30 16:59:34 2023 +0200 |
committer | GitHub <noreply@github.com> | Fri Jun 30 16:59:34 2023 +0200 |
tree | cd9820ffaef71489f8d4a1a1b76a3ad6e133ef2c | |
parent | 19fa443f7ff1c0c8b399aff7fe3ed5e5816a7b38 [diff] |
Make Changelog class eagerly load and parse file. (#120) * Make Changelog class eagerly load and parse file. Rather than reading and parsing the file on each access, the class now eagerly reads the file in the constructor, and immediately parses it into sections. Since the section parsing is incredibly simple, the overhead of splitting into sections should be minimal compared to loading the file from disk. Also, the existing code read the entire file, even if it only needs the newest entry of the changelog, so parsing the entire file once and for all should not be significantly slower, and should be much faster on repeated access. There should be no reason to create a Changelog and not query it at all.
This repository is home to general Dart Ecosystem tools and packages.
Package | Description | Version |
---|---|---|
blast_repo | A tool to bulk validate and fix GitHub repos. | |
corpus | A tool to calculate the API usage for a package. | |
dart_flutter_team_lints | An analysis rule set used by the Dart and Flutter teams. | |
firehose | A tool to automate publishing of Pub packages from GitHub actions. | |
repo_manage | Miscellaneous issue, repo, and PR query tools. |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.
For additional information about contributing, see our contributing page.