Skip to content
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

perf: parser speed (lexer rework) #474

Merged
merged 13 commits into from
Jan 24, 2024
Merged
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Go to File multiple workspace handling to be simpified ([#202][#202])
- Apex Log Parser Speed improveed to between 2 and 3 faster ([#475][#475])
- Go to file multiple workspace handling simplified ([#202][#202])
- Go to file from Call Tree will only ask you to select a workspace if more than one matching file is found in multiple workspaces, instead of everytime.

## [1.12.1] - 2023-12-11
Expand Down Expand Up @@ -327,6 +328,7 @@ Skipped due to adopting odd numbering for pre releases and even number for relea

<!-- Unreleased -->

[#475]: https://github.com/certinia/debug-log-analyzer/issues/475
[#299]: https://github.com/certinia/debug-log-analyzer/issues/299
[#202]: https://github.com/certinia/debug-log-analyzer/issues/202

Expand Down
6 changes: 3 additions & 3 deletions log-viewer/modules/__tests__/Database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2020 Certinia Inc. All rights reserved.
*/
import { DatabaseAccess } from '../Database.js';
import logParser from '../parsers/ApexLogParser.js';
import { parse } from '../parsers/ApexLogParser.js';

describe('Analyse database tests', () => {
it('Only DML and SOQL are collected', async () => {
Expand All @@ -16,10 +16,10 @@ describe('Analyse database tests', () => {
'09:19:13.82 (51592737891)|CODE_UNIT_FINISHED|pse.VFRemote: pse.SenchaTCController invoke(saveTimecard)\n' +
'09:19:13.82 (51595120059)|EXECUTION_FINISHED\n';

const apexLog = new logParser().parse(log);
const apexLog = parse(log);
const result = await DatabaseAccess.create(apexLog);
const firstSOQL = result.getSOQLLines()[0];

const firstSOQL = result.getSOQLLines()[0];
expect(firstSOQL?.text).toEqual('SELECT Id FROM Account');

const firstDML = result.getDMLLines()[0];
Expand Down
Loading
Loading