Skip to content

Commit d18da63

Browse files
Merge pull request #474 from lukecotter/perf-parser-speed
2 parents 9e2ad81 + 1467491 commit d18da63

3 files changed

Lines changed: 133 additions & 93 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515

1616
### Changed
1717

18-
- Go to File multiple workspace handling to be simpified ([#202][#202])
18+
- Apex Log Parser Speed improveed to between 2 and 3 faster ([#475][#475])
19+
- Go to file multiple workspace handling simplified ([#202][#202])
1920
- 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.
2021

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

328329
<!-- Unreleased -->
329330

331+
[#475]: https://github.com/certinia/debug-log-analyzer/issues/475
330332
[#299]: https://github.com/certinia/debug-log-analyzer/issues/299
331333
[#202]: https://github.com/certinia/debug-log-analyzer/issues/202
332334

log-viewer/modules/__tests__/Database.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2020 Certinia Inc. All rights reserved.
33
*/
44
import { DatabaseAccess } from '../Database.js';
5-
import logParser from '../parsers/ApexLogParser.js';
5+
import { parse } from '../parsers/ApexLogParser.js';
66

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

19-
const apexLog = new logParser().parse(log);
19+
const apexLog = parse(log);
2020
const result = await DatabaseAccess.create(apexLog);
21-
const firstSOQL = result.getSOQLLines()[0];
2221

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

2525
const firstDML = result.getDMLLines()[0];

0 commit comments

Comments
 (0)