Skip to content

Get-ParsedSqlOffsets is parsing the content twice #33

@Charles-Gagnon

Description

@Charles-Gagnon

It's calling Get-ParsedSql twice which should be unnecessary - you should be able to just cache the parse result and re-use that for the second one.
https://github.com/dfinke/PowerShellNotebook/blob/master/ConvertToSQLNoteBook.ps1#L32
https://github.com/dfinke/PowerShellNotebook/blob/master/ConvertToSQLNoteBook.ps1#L50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions