Quote:
This code i am using to read data from the port is very slow
By design, Serial port communications are very slow.
On real serial port, maximum speed is 115200 bauds, which means 11520 chars par second if there is a continuous flow.
What is your actual speed in baud and how many char per seconds do you receive ?