CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: JamesSchumacher

Page 1 of 27 1 2 3 4

Search: Search took 0.17 seconds.

  1. Replies
    0
    Views
    834

    Comments and suggestions?

    I have tested this and debugged it, I have found no problems that I can see at the moment. Can any of you see any POTENTIAL problems with the below code?



    template <typename NodeType> bool...
  2. Replies
    27
    Views
    5,795

    Re: Abstract VS Encapsulation

    And yes I know that the ITERATOR code is incorrect, that's supposed to be the general iterator, I got in a hurry!

    I have debugging the code I am working on as I work on it, and since I just...
  3. Re: how to maximize I/O (write) performace in win32?

    Calculate your output file size, use SetFilePointer() to set the file pointer, use SetEndOfFile(), then seek back to the beginning and write out all your data. It's much quicker.
  4. Replies
    6
    Views
    1,464

    Re: Hash functions

    Are you asking what are hashed functions used for, and a simple reference for that?

    If that is the case, one use for a hash function is to create an integer value that can be used as an index into...
  5. Replies
    6
    Views
    1,464

    Re: Hash functions

    There is no practical limit to how to implement a hash function, you can use your imagination. The width of the output hash is a consideration when creating a hash function. You determine the...
  6. Replies
    0
    Views
    1,037

    Noone knows everything...

    I have done a lot of improving my skills this past year, and one of the things that I have learned how to do, that I think a lot of people would love to know just to be able to improve their skills...
  7. Replies
    4
    Views
    978

    Re: Default property

    Native C++ doesn't nave defined properties, properties in pure C++ are implemented as variables with getter/setter methods.

    If you want to implement properties in native C++, you have to write...
  8. Re: Sending structure from client to server

    Pack your structure on 1 byte boundaries. (#include <pshpack1.h> #include <poppack.h>)

    Then just cast a pointer to the structure variable to a const char * when you pass it to the send() function....
  9. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    Considering that the thread should be left to die according to you, then why did you post? It's a thread on a forum.

    Last for me here, trust me.
  10. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    Actually, that isn't what it was. It was an attempt to shut your mouth about my lack of knowledge about STL. I know how to use it, and to give you a better idea.

    The dictionary class will have a...
  11. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    I suppose you would want to see code more like this.



    class CHashBucket /// Going to use a 5 byte hash, to limit list heights =)
    {
    public:
    CHashBucket();
    ~CHashBucket();
  12. Replies
    6
    Views
    1,464

    Re: Hash functions

    You can write your own hash functions.
  13. Replies
    0
    Views
    853

    (Distractions)

    ................

    You'd be surprised how distracting a sense of God can be.
  14. Replies
    30
    Views
    2,681

    Re: can you help me.

    When I began teaching myself C++ about 8 years ago, I was VERY FRUSTRATED at how I wanted to know everything all at once, and let me tell you, it took me until THIS YEAR to find out how to implement...
  15. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    I "got rid" of all those errors before I started on SkyZip. None of this code is having those problems.

    My Spaces Site

    You can find more info about the development of SkyZip (and the adaptive...
  16. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    How about this?

    This beats deflate on 60% of files, 40% deflate wins on. Could be about 50% in further testing that my compressor beats deflate. Not avi files, but image files it ALWAYS beats...
  17. Re: Just want to see if this looks right to you...

    Another note, as the comment says in that source.

    (NOTE THAT SkyZip IS NOT OPEN SOURCE)

    However, since this is only the Lempel Ziv compressor (not the base encoder although that is basically...
  18. Just want to see if this looks right to you...

    I am writing a generic adaptive coding mechanism, this 'coder' implementation only keeps track of an alphabets frequencies and the update procedure, etc... The actual ENCODING/DECODING of values is...
  19. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    /// I am not joking, this is my actual code

    void CDictionary::AddHashes(unsigned long dwCount)
    {
    const unsigned long dwDataLeft = m_dwDataLength > m_dwDictPos ?...
  20. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    And you wouldn't be interested in hearing that with a chain limit of 300, I am giving up 30KB of compression for a 127MB file, however... I have a speed of almost 9MB a second.

    I would have to cut...
  21. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    In order for you to get an idea...

    Just a 'portion' of my class and it's declaration.
  22. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    And while you all mess around... I am writing my new encoder. This is just a code portion that gets the frequencies from the data, you could do this yourself.



    /// (C) 2008 James Schumacher -...
  23. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    Hmmm....
  24. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    Well, of course.

    Everyone makes mistakes, you don't know me, I actually say that all the time.

    Anyways, as far as the REDUCER goes, I know it's working, and the reason I know it's working is...
  25. Replies
    64
    Views
    12,023

    Re: Algorithm or BAD RAM?

    Actually, do you know what the problem was?

    I found it, it was because I was forgetting to add hashes in my reducer's dictionary. DOH.

    This is relating to my post in the algorithms and data...
Results 1 to 25 of 657
Page 1 of 27 1 2 3 4





Click Here to Expand Forum to Full Width

Featured