[dovecot/core] 00bd7d: lib: Add strfastcase_hash

GitHub noreply at github.com
Mon Aug 14 15:30:10 EEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/dovecot/core
  Commit: 00bd7d0e21ffa84965fd6aa0ccbc54aab7fad77c
      https://github.com/dovecot/core/commit/00bd7d0e21ffa84965fd6aa0ccbc54aab7fad77c
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M src/lib/hash.c
    M src/lib/hash.h

  Log Message:
  -----------
  lib: Add strfastcase_hash

Fast case-insensitive hashing which works by masking signed
bytes with 0x20.


  Commit: f937937c966a6633f24f3de3bf7457c9612f3bb2
      https://github.com/dovecot/core/commit/f937937c966a6633f24f3de3bf7457c9612f3bb2
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M src/auth/password-scheme.c
    M src/auth/password-scheme.h
    M src/doveadm/doveadm-pw.c

  Log Message:
  -----------
  auth: Use hash table for schemes


  Commit: 512e3c94f603df12426158074a6bf729929c0b75
      https://github.com/dovecot/core/commit/512e3c94f603df12426158074a6bf729929c0b75
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M src/auth/password-scheme.c

  Log Message:
  -----------
  auth: Use strchr to split encoding and scheme

This is an optimization because usually strchr is faster


  Commit: 083675993c0b92a673dc14d810e4372de2c077b8
      https://github.com/dovecot/core/commit/083675993c0b92a673dc14d810e4372de2c077b8
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M src/auth/password-scheme.c

  Log Message:
  -----------
  auth: Empty schemes cannot be aliases

Optimizes cases where empty scheme is compared to PLAIN


  Commit: 6894cb956465bfb921abc7872a48e90c1b632a7e
      https://github.com/dovecot/core/commit/6894cb956465bfb921abc7872a48e90c1b632a7e
  Author: Aki Tuomi <aki.tuomi at dovecot.fi>
  Date:   2017-08-14 (Mon, 14 Aug 2017)

  Changed paths:
    M src/auth/mech.c

  Log Message:
  -----------
  auth: Do not use strcasecmp to compare mechanisms

This is optimization since strcasecmp is slow


Compare: https://github.com/dovecot/core/compare/5e03576913a0...6894cb956465


More information about the dovecot-cvs mailing list