Project

General

Profile

Actions

Optimization #1218

closed
KS PA

BoyerMooreNocase could avoid tolower() call

Optimization #1218: BoyerMooreNocase could avoid tolower() call

Added by Ken Steele almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

The function BoyerMooreNoCase() uses tolower() to convert each character to lower case before looking it up in the jump tables. It would be simpler to just duplicate the lowercase jump values into the uppercase jump entries and remove the tolower() calls.

This requires that the tables for case and nocase of the same content string are not shared. This might already be the case.

KS Updated by Ken Steele almost 12 years ago Actions #1

It appears that case and nocase do not share a context.

VJ Updated by Victor Julien almost 12 years ago Actions #2

Each instance of a content keyword has it's own bm ctx, which is then either case sensitive or case in-sensitive.

AH Updated by Andreas Herz about 10 years ago Actions #3

  • Assignee set to OISF Dev
  • Target version set to TBD

PA Updated by Philippe Antoine almost 7 years ago Actions #4

  • Assignee changed from OISF Dev to Philippe Antoine

PA Updated by Philippe Antoine over 6 years ago Actions #5

  • Status changed from New to Closed
  • Target version changed from TBD to 5.0rc1
Actions

Also available in: PDF Atom