Pseudo terminal sockets and disabling utf8 encoding?
Pseudo terminal sockets and disabling utf8 encoding?
- Subject: Pseudo terminal sockets and disabling utf8 encoding?
- From: Eivind Naess <email@hidden>
- Date: Wed, 14 Nov 2012 20:01:59 -0800 (PST)
Guys,
I am writing an sstp-client for Unix/Linux and made a port available for Mac OS-X, unfortunately if I run sstp-client on a Mac OS-X 10.7.3 the performance of the SSTP connection is pretty bad. Using Xcode and Instruments, I am able to detect the function utf8_encodelen being one of the culprits consuming lots of time when writing data to pppd over a pseudo terminal socket.
I have tried to setup a termios structure and disable UTF encoding, and/or making the socket "raw" by setting cfmakeraw(termios *p). Not any of these improved the performance. Is there anyone out there that has a clue on how to improve this (without claiming a re-design)?
Regards,
- Eivind
Running TimeSelfSymbol Name
25245.0ms 100.0%0.0 Main Thread
25180.0ms 99.7%0.0 start
25180.0ms 99.7%0.0 main
25137.0ms 99.52.0 event_base_loop
19765.0ms 78.2".0 sstp_recv_cont
12034.0ms 47.6.0 sstp_state_recv
11933.0ms 47.2.0 sstp_pppd_send
10607.0ms 42.0$.0 write
10508.0ms 41.6.0 unix_syscall64
10479.0ms 41.5%7.0 write_nocancel
10447.0ms 41.3%4.0 writev
10426.0ms 41.2.0 utf8_encodelen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden