Reformatting code involving Lambda is extremely slow in Intellij IDEA 14.1.2 -


when practice implementing promise-like network processing, find intellij ide becomes unresponsive when reformatting long code involving lambda expressions. luckily finished reformatting job in several minutes, time got stuck. how happen? , how fix it? thanks:)

below code

node myaddr = nodes.get(local);     server = new tcpserver();     server.bindasync(myaddr.host, myaddr.port)           .<channelfuture>then(future -> {               if (log.isinfoenabled())                   log.info("local server has started @" + myaddr + " result=" + future.issuccess());               async.onevent(future);           })           .<connectevent>loop(conn -> {               if (log.isinfoenabled())                   log.info(conn.channel.remoteaddress() + " connected me");               conn.asyncstream                       .<networkevent<bytebuf>>then(id_event -> {//identification                           bytebufinputstream in = new bytebufinputstream(id_event.msg);                           int index = (int) serializer.deserialize(in);                           if (log.isinfoenabled())                               log.info("identify " + id_event.ctx.channel().remoteaddress() + " " + index);                           if (!connections.containskey(index) || !connections.get(index).accept(id_event.ctx.channel()))                               id_event.ctx.close();                       })                       .<networkevent<bytebuf>>loop(msg_event -> {                           if (log.isinfoenabled())                               log.info("recv msg " + conn.channel.remoteaddress());                           bytebufinputstream in = new bytebufinputstream(msg_event.msg);                           async.onevent(serializer.deserialize(in));                           return true;                       })                       .exception((e) -> {                           if (log.iserrorenabled())                               log.error("error: " + e.getmessage());                       });               return true;           }); 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -