Skip to content

Use buffer not string #36

Closed
Closed

Description

@basarat

Lots of calls to getText on atom editor. Also our languageServiceHost specifically ScriptSnapshot is working on string. Make it use nodejs Buffer. Also do this when reading files etc.

Activity

  1. added this to the milestone on Jan 29, 2015
  2. basarat commented on Jan 30, 2015

    @basarat
    MemberAuthor
  3. basarat commented on Jan 30, 2015

    @basarat
    MemberAuthor

    Debounce linter further

    Use on did change to just copy edit buffer.

    And Debounce errors further

    It is just might make autocomplete work as it is.

  4. basarat commented on Jan 31, 2015

    @basarat
    MemberAuthor

    Debounce linter further
    And Debounce errors further

    Not needed.

    Use on did change to just copy edit buffer.

    Investigating.

  5. basarat commented on Feb 1, 2015

    @basarat
    MemberAuthor

    It seems like this is not the issue. The program.languageServiceHost.updateScript(filePath, options.editor.getText()); call only takes under 1ms on a 1000 line file (considered a largish file for most purposes).

    However the complete call to requestHandler in autocomplete plus is around 100ms
    image

    With getCompletion taking the majority of time.

    image

    So moving this to the wishlist category.

  6. basarat commented on Feb 1, 2015

    @basarat
    MemberAuthor

    TODO: investigate if getCompletions makes calls to the language service host and consider optimizations if that is what is taking too long.

  7. self-assigned this
    on Feb 26, 2015
  8. basarat commented on Feb 26, 2015

    @basarat
    MemberAuthor

    Probably a good thing to do after #130

  9. removed this from the 2 Second Cut milestone on Mar 2, 2015
  10. basarat commented on Mar 10, 2015

    @basarat
    MemberAuthor

    We are not going to use a buffer. Instead we will bring in the changes from TSServer

  11. locked and limited conversation to collaborators on Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions