Re: Most efficient way of storing 1024*1024 bits



Mike Meyer <mwm@xxxxxxxxx> writes:
> Six megabytes is pretty much nothing on a modern computer. I'd store
> the things as a string of "0" and "1", and then use .find (or maybe
> the in keyword) for doing the searches.
>
> This doesn't work very well if you're going to mutate the string,
> though.

You can use re.search on array.array byte vectors. I don't know how
the speed compares with string.find.
.



Relevant Pages

  • How to display quotes
    ... I am trying to output a " in a string, but I can't do it because a " is a ... "keyword" by the VB intellisense. ... response would be GREATLY appreciated! ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Query by Form Keyword problem
    ... I am using a Form to enter a Keyword or string in to a Query. ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: What do you think about the for-each loop?
    ... > for (String s in stringCollection) { ... keyword to an existing language.. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: How To Find Specific Keywords
    ... but then it excludes the specific keyword ... anywhere within the string, but it also includes other words that ... I used it with the ParseItems function, ... Dim oMatches As Object 'VBScript_RegExp_55.MatchCollection ...
    (comp.databases.ms-access)
  • Re: Using the same subroutine to read files with different structures
    ... to read each line from the external file into a temporary string, ... However, to write a really good parser relying mostly on internal read, there typically isn't enough error reporting granularity in the IOSTAT return codes to do a really proper job of it, not to mention that the IOSTAT values aren't portable. ... returns an array of keyword strings ...
    (comp.lang.fortran)