MyIRC

Flora Huot

Walter Bonetti

The Server

Use

epoll

The

next implementation with poll

WTF moulinette ?

Ring Buffer Implementation

Normal Buffer Ring

multiple memcpy

OPTIMIZED RING BUFFER

Read / Write

Normal vs Optimized

  • Memory needed each call
  • Slow memcpy recurent
  • Excessive cost
  • Hard programming
  • lowcost (write/read)
  • one memory allocation
  • more space required
  • one fd required to init the mmap

Fast Connection

Slow Communication

Slow Connection

Fast Communication

The client

  • Simple shell client

Thank you for watching

Made with Slides.com