首页 \ 问答 \ Clojure:相当于Common Lisp中的“do”(Clojure: equivalent of “do” from Common Lisp)

Clojure:相当于Common Lisp中的“do”(Clojure: equivalent of “do” from Common Lisp)

新手Lisp的问题,抱歉无知。

Common Lisp在Clojure中的作用是什么?


Newbie Lisp question, sorry for the ignorance.

What is the equivalent of Common Lisp's do in Clojure?


原文:https://stackoverflow.com/questions/20982237
更新时间:2022-05-23 11:05

最满意答案

这个问题是由IIS引起的......在将web api切换到OWIN自身主机问题后,现在内存使用量大约为20MB


This issue was caused by IIS... after switching web api to OWIN self host problem was gone, now memory usage is around 20mb

相关问答

更多
  • 我认为你误解了有关指针所有权的论坛帖子。 在qwt中,QwtPlotItems都是由它们attach()编辑的QwtPlot所有,因此如果删除该图,则将删除所有QwtPlotItem。 如果你调用detach() ,那么所有权将被转移到调用者,所以你需要自己删除它(或.attach()它到另一个图)。 如果它被删除,那么无法附加到另一个地块。 item.detach(); delete item item.detach(); delete item对内存管理完全没问题,删除是必要的。 另一种方法是直接删除它 ...
  • 它实际上并不奇怪,看看如何通过[[NSArray alloc] init为Query和Query1分配内存。 但是,你通过调用[database executeQuery:]覆盖它们的指针,所以分配的内存被泄露了。 看起来你真的不需要数组分配,所以你可以简单地删除那一行。 但是, [Query release]和[Query release] [Query1 release]不会使应用程序崩溃(或至少在稍后的某个时间点),表示[database executeQuery:]返回保留的内存,从而将其所有权委托 ...
  • 关于内存泄漏 一般说来内存泄漏仍然可以存在于.net中。 (排序,并非所有这些都是教科书内存泄漏本身)因为事情陷入第2代垃圾收集或不处理继承自IDisposable的对象或者那个问题Streams,Events,SQL连接保持开放状态搞乱连接池。虽然我不是这方面的专家,但我会指出几个可以帮助你完成任务的地方。 内存管理Fundementals 检测.NET中的内存泄漏 当你在它的时候,Groking垃圾收集工作的方式有助于这种类型的努力。 从“垃圾收集的Fundementals”开始,可以了解幕后所有.NE ...
  • 我使用WinDbg和SOS-extesion成功调试.NET应用程序中的memoryleaks。 看看这里和这里开始吧。 我还推荐了Tess Ferrandez的博客 ,了解有关使用WinDbg调试.NET的更多信息 I used WinDbg and the SOS-extesion with success for debugging memoryleaks in .NET applications. Have a look here and here to get a start. I also re ...
  • WCF使用临时缓冲区来处理消息。 您认为内存泄漏可能是尚未收集的临时缓冲区。 为了避免创建新的缓冲区,WCF 始终使用BufferManager重用缓冲区,最高可达maxBufferPoolSize ( 此处链接到元素)指定的限制,默认情况下为512KB。 超出此限制的任何请求都会导致创建永不重用且必须进行垃圾回收的新缓冲区。 另一个检查选项是maxBufferSize,它限制了BufferManager可以返回的最大缓冲区大小。 较大的缓冲区不会被合并,必须进行垃圾回收。 如果使用大邮件,则可以通过增加此 ...
  • 这个问题是由IIS引起的......在将web api切换到OWIN自身主机问题后,现在内存使用量大约为20MB This issue was caused by IIS... after switching web api to OWIN self host problem was gone, now memory usage is around 20mb
  • 那么,你当然是在泄漏CRYPT32资源。 我在你的代码片段中看到的一个直接候选人是CertFindCertificateInStore()的返回值。 它必须通过显式调用CertFreeCertificateContext()来释放,我没有看到。 X509Certification(IntPtr)构造函数没有很好地记录,它没有描述上下文需要多长时间才能生效。 我看到它调用了一个名为X509Utils._DuplicateCertContext()的内部方法,因此你可以在创建对象后立即调用release函数。 ...
  • 我认为你的第一点可能是问题的原因。 您可以尝试减少缓存到期时间,并检查再次发生内存错误需要多长时间,您可能需要对算法进行更改以避免这种情况。 你的第二个不应该是错误的原因。 I think your 1st point might be the reason for the issue. You might try reducing the cache expiry time and check how much time it is taking to get outofmemory error agai ...
  • 虚拟内存本质上(在实际意义上)与物理内存相同,只是扩展到系统的磁盘驱动器以进行缓存(请参阅分页文件)。 由于它位于磁盘上,因此访问速度要慢得多,因为在读取数据之前需要将数据从磁盘“交换”到物理内存中。 如果程序有内存泄漏,它将填满(或至少达到程序可用内存的限制。) 您可以使用top来检查消耗大量内存的进程。 如果内存量在异常速率的程序中继续增长,那么这可能是内存泄漏的指示。 使用像valgrind这样的程序可以更容易识别: http : //en.wikipedia.org/wiki/Valgrind Vi ...
  • 您可以通过GC.GetTotalMemory(true)内存是否写入页面文件的方式。 这应该返回.NET进程的实际内存消耗,包括可能已写入页面文件的任何页面。 这甚至可能与例如任务管理器报告的内存不同,但它将报告.NET对象实际分配的内容。 有关任务管理器和GetTotalMemory报告的内存消耗差异的详细信息,请参阅http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/2ebbff38-f881-47ad-a4b4-9c91 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)