Skip to content
Snippets Groups Projects
  1. Apr 11, 2019
  2. Apr 10, 2019
  3. Apr 09, 2019
  4. Apr 08, 2019
    • nightfox's avatar
      More use of get_index() if available, to help speed things up a bit. Also,... · d12a7c46
      nightfox authored
      More use of get_index() if available, to help speed things up a bit.  Also, made a further optimization: when checking a sub-board if it has polls, check in reverse rather than forward.  Since polls & voting is a relatively recent feature in Synchronet, hopefully it should finish faster going in reverse.
      d12a7c46
  5. Apr 07, 2019
    • nightfox's avatar
      SlyVote v1.02: Now uses the new get_index() messagebase function, if... · 44d863cd
      nightfox authored
      SlyVote v1.02: Now uses the new get_index() messagebase function, if available, for getting the message index objects when determining if a sub-board has polls (in the subBoardHasPolls() function).  get_index() is faster than iterating through all messages and calling get_msg_index() for each message.
      44d863cd
  6. Apr 06, 2019
    • rswindell's avatar
      MsgBase.put_msg_header() now updates the internal (smbmsg_t) representation · 53c677c3
      rswindell authored
      of the message header so that functions that need it (e.g. bbs.show_msg_header)
      don't use/show stale data. This change requires the updated smb_copymsgmem()
      which clear/sets message convenience pointers upon copying hfields from one
      message header to another.
      53c677c3
    • rswindell's avatar
      smb_copymsgmem() fix: · 3debb32c
      rswindell authored
      Did not clear/set convenience pointers (e.g. msg.subj), so they would point
      to the source message hfield_dat buffers which may be freed or garbage.
      Apparently nothing that used smb_copymsgmem() used the convenience pointers
      (before now), so it hasn't been a problem before now. <shrug>
      It became a problem becaue I'm going to use this function in js_put_msg_header
      to fix a problem where the underlying smbmsg_t representation is not current
      even after MsgBase.put_msg_header() is used.
      3debb32c
    • rswindell's avatar
      New MsgBase method: get_index() - returns an array of all message index records · 75417a26
      rswindell authored
      (objects, in the same format as returned by the get_mgs_index() method)
      much faster than iterating through a loop, calling the get_msg_index() method
      for each message. If you want to load messages (e.g. headers, text), filtering
      by criteria found in the message index (attributes, to/from user, subject CRC)
      loading a list of indexes and filtering before calling get_msg_header() for the
      selected messages is much faster than previously available MsgBase object
      methods (e.g. get_all_msg_headers()). If you don't need to filter the loaded
      messages (you really want *all* message headers), then get_index() is of no
      benefit to you, the script-writer. This is most useful for the "mail" msgbase
      where selective loading of messages is more common.
      75417a26
  7. Apr 05, 2019
    • rswindell's avatar
      There appears to be a few places in this file that treat ^A^A as a literal · 0a5ea2e4
      rswindell authored
      Ctrl-A (ASCII 1) char. This is wrong. A literal Ctrl-A sequence is ^AA.
      I'm only addressing one of those instances in this commit since it *also*
      appears to be an off-by-one bug where it's treating *all* Ctrl-A sequences as
      though they were ^AA - so just #ifdef'ing out until Deuce takes a look at this.
      0a5ea2e4
  8. Apr 02, 2019
Loading