Wednesday, October 28, 2009

GpHugeFile v6 and other updates

Today I finally published all my updated open source units. Some were recently modified and for others the update was long overdue. Some were only slightly modified, in others the changes were bigger. Read through the list below and you’ll see.

In future posts I intend to write some more about changes in GpHugeFile, GpStuff, and GpLists. If you want to know more about changes in other units, drop a comment.

GpHugeFile 6.01

  • Implemented read prefetch, activated by setting hfoPrefetch option flag.
  • Number of buffers to prefetch can be set with a ResetEx parameter.

Unfortunately for some, this option is only available in Delphi 2007 and newer because the worker object is implemented using OmniThreadLibrary.

GpVersion 2.04

  • Updated for Delphi 2009.
  • Extended IVersion interface with IsNotHigherThan, IsNotLowerThan and IsEqualTo.

GpTextFile 4.02

  • Compatible with Delphi 2009.

GpSync 1.22

  • Implemented TGpSWMR.AttachToThread.
  • Added internal check to ensure that TGpSWMR.WaitToRead/WaitToWrite/Done are called from one thread only.

GpStuff 1.19

  • Added EnumPairs string array enumerator.
  • Added EnumList string enumerator.
  • Added EnumStrings enumerator.
  • InterlockedIncrement/InterlockedDecrement deal with integers, therefore TGp4AlignedInt.Increment/Decrement must return integers. All other functions in TGp4AlignedInt also changed to work with integers.
  • Implemented function CAS (compare and swap) in TGp4AlignedInt and TGp8AlignedInt64 records.
  • TGp8AlignedInt renamed to TGp8AlignedInt64.
  • TGp8AlignedInt.Addr must be PInt64, not PCardinal.
  • Implemented IGpTraceable interface.

GpStructuredStorage 2.0a

  • [Erik Berry] Definition of fmCreate in Delphi 2010 has changed and code had to be adjusted.

GpStreams 1.25b

  • Safer TGpFixedMemoryStream.Read.
  • Added setter for TGpFixedMemoryStream.Position so that invalid positions raise exception.

GpSharedMemory 4.12

  • Compatible with Delphi 2009.

GpLists 1.43

  • Added parameter 'step' to various Slice(), Walk() and WalkKV() enumerators.
  • Added method FreeObjects to the TStringList helper.

5 comments:

  1. Anonymous09:41

    Thank you ! That's great :D

    ReplyDelete
  2. Hello Primoz,

    Thank you for your updates.

    I've a question in regards to GpTextFiles. It contains unit GPStreamWrapper which is older than GPStreamWrapper used in OmniXML (daily snapshot version). Shoudn't you update it ?

    FWIW there is link issues on your homepage (http://gp.17slon.com/whatsnew.htm). Both "2009-10-27: GpVersion 2.04 released" and "2009-10-27: GpTextFile 4.02 released" links are pointing to the GpSync page.

    ReplyDelete
  3. Both OmniXML_snapshot.zip and gptextfile_complete.zip contain GpStreamWrapper 1.04. The only difference is additional header in OmniXML version.

    I fixed the What's New page. Thanks for the warning.

    ReplyDelete
  4. Does GpHugeFile support NTFS Alternate Data Streams (http://support.microsoft.com/kb/105763 and http://en.wikipedia.org/wiki/NTFS#Alternate_data_streams_.28ADS.29)?

    ReplyDelete
  5. Yes, you just pass file_name:stream_name in the file name parameter.

    ReplyDelete