Menu

#15 5 second startup lag in gethostbyname() on macOS 10.12

None
closed-fixed
nobody
None
5
2017-04-26
2016-10-13
No

I've been noticing a couple seconds lag at startup.. looked into it today, and the delay is coming from

local = gethostbyname(buff);

in UDP_Init. buff is Erics-MacBook-Pro.local. I guess the delay is coming from doing a DNS lookup on that.

This isn't a huge problem but just putting it up here.. not sure if it is OS X specific (I'm guessing not, looking at the code).

Maybe check spike's branch too.

Discussion

  • Eric Wasylishen

    Eric Wasylishen - 2017-04-26

    Put a workaround in for this in r1403

     
  • Eric Wasylishen

    Eric Wasylishen - 2017-04-26
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB