Skip to content

Improve performance of "P1Parser::parse" by using std::map. Various refactoring.#38

Merged
PolarGoose merged 1 commit intomainfrom
use_map_in_ParsedData_parse_line_function
Nov 7, 2025
Merged

Improve performance of "P1Parser::parse" by using std::map. Various refactoring.#38
PolarGoose merged 1 commit intomainfrom
use_map_in_ParsedData_parse_line_function

Conversation

@PolarGoose
Copy link
Collaborator

@PolarGoose PolarGoose commented Nov 7, 2025

  • Improve performance of P1Parser::parse method. Use std::map in ParsedData::parse_line instead of iterating over all fields to parse each field from a DSMR telegram.
  • Small refactoring. Accept ParsedData by reference instead of by pointer.
  • Add reference document "IEC.62056-61-2006 - Object identification system (OBIS).pdf"
  • Move src/test to tests folder because it is a more idiomatic folder structure for a C++ library.
  • Add noexcept where applicable

@PolarGoose PolarGoose changed the title [Draft] Improve performance of "P1Parser::parse method" by using std::map. Various refactoring. [Draft] Improve performance of "P1Parser::parse" by using std::map. Various refactoring. Nov 7, 2025
@PolarGoose PolarGoose force-pushed the use_map_in_ParsedData_parse_line_function branch 7 times, most recently from dc7a60d to 7303dfb Compare November 7, 2025 13:50
…_map in `ParsedData::parse_line` instead of iterating over all fields to parse each field from a DSMR telegram.

* Small refactoring. Accept `ParsedData` by reference instead of by pointer.
* Add reference document "IEC.62056-61-2006 - Object identification system (OBIS).pdf"
* Move `src/test` to `tests` folder because it is a more idiomatic folder structure for a C++ library.
* Add `noexcept` where applicable
@PolarGoose PolarGoose force-pushed the use_map_in_ParsedData_parse_line_function branch from 7303dfb to eb70dd1 Compare November 7, 2025 14:13
@PolarGoose PolarGoose marked this pull request as ready for review November 7, 2025 14:18
@PolarGoose PolarGoose changed the title [Draft] Improve performance of "P1Parser::parse" by using std::map. Various refactoring. Improve performance of "P1Parser::parse" by using std::map. Various refactoring. Nov 7, 2025
@PolarGoose PolarGoose merged commit 3b699cc into main Nov 7, 2025
2 checks passed
@PolarGoose PolarGoose deleted the use_map_in_ParsedData_parse_line_function branch November 7, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant