Skip to content

Conversation

@heisen-li
Copy link

This PR will be imported into Gerrit with the title and first
comment (this text) used to generate the subject and body of
the Gerrit change.

Please ensure you adhere to every item in this list.

More info can be found at https://github.com/golang/go/wiki/CommitMessage

  • The PR title is formatted as follows: net/http: frob the quux before blarfing
    • The package name goes before the colon
    • The part after the colon uses the verb tense + phrase that completes the blank in,
      "This change modifies Go to ___________"
    • Lowercase verb after the colon
    • No trailing period
    • Keep the title as short as possible. ideally under 76 characters or shorter
  • No Markdown
  • The first PR comment (this one) is wrapped at 76 characters, unless it's
    really needed (ASCII art, table, or long link)
  • If there is a corresponding issue, add either Fixes #1234 or Updates #1234
    (the latter if this is not a complete fix) to this comment
  • If referring to a repo other than golang/go you can use the
    owner/repo#issue_number syntax: Fixes golang/tools#1234
  • We do not use Signed-off-by lines in Go. Please don't add them.
    Our Gerrit server & GitHub bots enforce CLA compliance instead.
  • Delete these instructions once you have read and applied them

@heisen-li heisen-li changed the title 在进行压缩字符串的时候,对字符串进行匹配的时候,为了提高匹配速度,每4个字节进行一次哈希算法。但是,在这个程序中,在未开始进行匹配的时候进行了调用哈希进行计算。并且在后面的程序中没有发现对计算的哈希值进行利用。并且后面有判断的程序继续进行哈希计算。所以这个哈希函数的调用可以取消,取消之后,有些函数的性能提高可以达到10%。大家看一下,这个函数是否可以取消,在程序的执行上没什么问题吧? 删除在匹配字符串的执行过程中对哈希算法的调用 Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants