Natools

Check-in [562e1cf9fc]
Login
Overview
Comment:tools/smaz.adb: use the new map-based dictionary hash in evaluation
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 562e1cf9fca20e5ff6c0cd5f73bb8e9660bb543b
User & Date: nat on 2016-10-16 17:21:33
Other Links: manifest | tags
Context
2016-10-17
20:48
smaz-tools: add a trie-based dynamic dictionary lookup check-in: 34d16d2c19 user: nat tags: trunk
2016-10-16
17:21
tools/smaz.adb: use the new map-based dictionary hash in evaluation check-in: 562e1cf9fc user: nat tags: trunk
2016-10-15
18:50
smaz-tools: new facility for faster hashing of dynamic dictionaries check-in: f651755fea user: nat tags: trunk
Changes

Modified tools/smaz.adb from [50cf344fab] to [7fd7c35276].

674
675
676
677
678
679
680



681
682
683
684
685
686
687
                  end loop;

                  Print_Line (Original_Total, Output_Total, Base64_Total);
               end;
            end if;

         when Actions.Evaluate =>



            declare
               Total_Size : Ada.Streams.Stream_Element_Count;
               Counts : Natools.Smaz.Tools.Dictionary_Counts;
            begin
               if Handler.Job_Count > 0 then
                  Parallel_Evaluate_Dictionary (Handler.Job_Count,
                     Dictionary, Input_Data, Total_Size, Counts);







>
>
>







674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
                  end loop;

                  Print_Line (Original_Total, Output_Total, Base64_Total);
               end;
            end if;

         when Actions.Evaluate =>
            Natools.Smaz.Tools.Set_Dictionary_For_Map_Search (Dictionary);
            Dictionary.Hash := Natools.Smaz.Tools.Map_Search'Access;

            declare
               Total_Size : Ada.Streams.Stream_Element_Count;
               Counts : Natools.Smaz.Tools.Dictionary_Counts;
            begin
               if Handler.Job_Count > 0 then
                  Parallel_Evaluate_Dictionary (Handler.Job_Count,
                     Dictionary, Input_Data, Total_Size, Counts);