WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Limit returned codelet line-lengths. #77

@sevko

Description

@sevko

Returning codelet results that are over a thousand lines long is somewhat senseless, because, if a user requires all relevant matches for a symbol, they'll probably ultimately resort to downloading the file from its source and operating on it manually (and more efficiently). Capping the codelets the client receives at a length of 1,000 lines would also decrease load/syntax-highlighting times.

The excerpt of the codelet that we return needs to be intelligently selected -- optimally, so that the number of matches it contains is maximized, but we can settle for a simpler algorithm because it doesn't much of a difference.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions