Faster completion of projects

Distributed platform originally planned to use asynchronous methods to complete the programming and implementation of lightweight threads later modified to be compatible protocol, and later found that the logic of existing projects synchronous code be changed to asynchronous callback methods changed things too much, so put lightweight threads in recent weeks ahead of implementation. Test results is still the ideal, ucontext switching efficiency at more than 2 million / second, erlang at my test machines on the same non-smp version 7200000 / second, smp version of fewer than 200 ten thousand / second, switch performance indeed have gaps, but at the moment appears to be sufficient. Also did not go to Lock-free implementation of the SMP version of the current thread pool are used to run multi-threaded logic, necessary part of running multi-threaded need only take the initiative to cut the current lightweight thread to the thread pool, run End It part of a further cut back on it. IO part and put AiO system combining event, so although the proceedings are in the single-threaded implementation, the document is not read and write some obstruction.

Erlang will use a lot of resistance, although a lot of publicity over the past once the project team is basically all know this thing, but use it to do the project, especially the transformation of existing projects, the workload or Long . Using C + + implementation of the distributed platform compatible with the existing code is better for lightweight threads unfriendly logic (occupied by the stack is too large, there is obstruction, etc.), can be easy to add a thread pool to switch, and the practice of Eurasia similar.

At present, completed the actor model (lightweight threads, send / receive and overtime semantics, the process of Registration, etc.), socket module, distributed model (and the node is similar to Erlang), aio integration, Future (see IoLanguage, fun East East), because of the use of C + + development, do not put up with Erlang grammar of FP, you can also use C + + syntax features. Originally thought that the platform after the existing code changes done more, at present it seems only a small number of modifications to the code the way to prepare than the asynchronous callback easier.
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Faster completion of projects

  • nginx 502 Bad Gateway error collection problem

    Since, nginx and lighttpd documentation rarely true, not to mention the Chinese documents, and so the collection of some of the mistakes on the 502 here, to retain the source address, source address of the proposed look of the content. 502 are FastCG ...

  • Using AJAX to prepare a simple photo album

    AJAX (Asynchronous JavaScript And XML) is a use of JavaScript and Extensible Markup Language (XML), in a web browser and server to send or receive data between the technologies. Mainly used in Ria (Rich internet applications) of the development. xml probl

  • rails version of the change (1) - rails of the introduction

    Rails framework are at the first time in July 2004, its R & D is the 26-year-old Danes David Heinemeier Hansson. Different from complex Web development framework, Rails is more in line with actual needs and more efficient Web development framework. Ra

  • Deployment rails ubuntu server

    sudo vi / etc / apt / source.list upgrade os install ruby

  • autotest, make your test automation RSpec (b) [windows]

    Following Part <<autotest, Let your rspec test automation >> We are the RSpec implementation of automated testing, but always want to open a dos shell look at the recent test results are also too cumbersome. Well, let us to achieve automated t

  • ajax overtime

    ajax overtime

  • SqlServer database connection pool to connect tomcat

    First, install the JDBC Driver The database driver jar file to put (Tomcat_install) \ common \ lib directory Second, configure the Connection Pool 1. Overall connection pool configuration, Tomcat in any Web application can be configured to use the co ...

  • JUnit Unit Testing Summary

    Read some of the unit test article, from the article in the interception of a number of information, which could be considered in the learning process, a summary of it! See future! Unit testing code is not used to prove you are right, but in order to ...

  • lighttpd + fastcgi built a server how to preserve the status of server

    Requirements: server-side has much static files, there is much use of c + + to prepare the operational components necessary to carry out these functions on the external packaging Published Service, server-side state required to preserve the client (simila

  • How to do a good job in the demand for change management - needs to change flow specification

    Project Leader: assessment needs to change some of the workload to determine whether it needs to change the contents of the progress on the development of an impact, if the demand to change the progress of an impact on the development, the project le ...

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries