NodeGreenHand
NodeGreenHand
Hello @JonathanMagnan The problem has been revised. Please give me an idea, 3Q Best Regards, NodeGreenHand
Hello @JonathanMagnan Q1:Which basic operation methods are the fastest in HAP? Q2: HtmlNode node = HtmlNode.CreateNode("<p><span>123</span></p>"); HtmlNode span = node.FirstChild; HtmlNode newSpan = HtmlNode.CreateNode("<span></span>"); newSpan.AppendChild(span); node.RemoveAllChildren(); node.AppendChild(newSpan); Why? span.XPath The...
Hell @JonathanMagnan Sorry, I'm wrong. It's not the XPath error, but the parentnode value of the element. It shouldn't be null, it should be the parent element of the new...
Hello @JonathanMagnan Sorry, maybe I didn't describe it clearly. What I mean is to insert a new child element, Child1, into the P element. All the original child elements of...
Hello @JonathanMagnan Although this idea can solve this problem, it is not my ideal solution. In my application scenario, such operations are frequently performed. If deep copy is carried out...
Hello @JonathanMagnan Should it be more efficient,hehe Best Regards, NodeGreenHand
Hello @JonathanMagnan In fact, to put it simply, it is to add a new function. The function is to "insert a child element into the parent element and move all...
Hello @JonathanMagnan Thank you very much for taking my advice. I'll let you know if it's what I want after I test it. Best Regards, NodeGreenHand
> 单例,不是一个实例 socket,内部是一个 SocketPool,每次用的时候取,用完归还。 我的疑问在这,我想节约每次打开数据库连接池的时间,即我想复用打开的连接池这个对象,比如,我最多允许打开50个连接池,每次多线程并发访问,有多余连接池的时候,直接获取,不再创建,没有多余的到时候,只要小于50,则创建新的,用完后,新的又保存起来,能满足这种需求吗?谢谢
> 建议使用 FreeRedis 他支持更高的 redis 功能,可扩展性更方便 这个也满足我刚才说的应用场景吗?然后就是单例的好处是什么?如果使用多个实例,在并发访问时,在只读取数据的情况下,是否会更快?谢谢